﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DataBase
{
    private Dictionary<string, long> m_dicUpdateTime = new Dictionary<string, long>();

    

    public void UpdatePullDataTime(string strKey, long lTime)
    {
        if (m_dicUpdateTime.ContainsKey(strKey))
        {
            m_dicUpdateTime[strKey] = lTime;
        }
        else
        {
            m_dicUpdateTime.Add(strKey, lTime);
        }
    }

    public long GetRefreshDataTime(string strKey)
    {
        if (m_dicUpdateTime.ContainsKey(strKey))
        {
           return m_dicUpdateTime[strKey];
        }
        return 0;
    }

    
    public virtual void InvalidDataCheck(string str)
    {

    }
}